package com.company.utils;

import com.company.service.BaseService;
import com.company.service.impl.LoginServiceImpl;
import com.company.service.impl.RegistServiceImpl;
import com.company.service.impl.StartServiceImpl;

public class SericeFactory {
    public static BaseService getService(String key){
        if ("start".equals(key)) {
            return new StartServiceImpl();
        } else if ("login".equals(key)){
            return new LoginServiceImpl();
        }else if ("regis".equals(key)){
            return new RegistServiceImpl();
        }
        return null;
    }
}
